package com.elgenring.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* @Description: 当前页与每页现实的内容
* @Author: Atlas
* @Version: 1.0
* @Date:  2022/6/21 21:27
*/

@Data
@AllArgsConstructor
@NoArgsConstructor

public class BaseQuery {

    private Integer currentPage = 1;

    private Integer pageSize = 1;

    private String keywords;

    private Long types_id;

    public Integer getStart(){

        return (this.currentPage - 1) * this.pageSize;
    }
}
